/*
Jack Morris
11/20/14
Chapter 6
Page 122
Assinment 5
*/
#include <stdio.h>

int main()
{
  int number, reverse = 0;
  printf("Enter a 2+ digit number:");
  scanf("%d", &number);
  do
  {
    reverse = reverse * 10;
    reverse = reverse + number % 10;
    number = number/10;
  } while(number>0);
  printf("%d", reverse);
  return 0;
}